<%@ tag dynamic-attributes="atts" 
%><%@ tag body-content="empty" 
%><%@ attribute name="object"  required="true" type="java.lang.Object" 
%><%@ attribute name="method"  required="true" type="java.lang.String"
%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  
%><c:set var="atts" value="${atts}" scope="request"/> <% 
	java.util.Map atts = (java.util.Map)request.getAttribute("atts");
	int count=atts.size();
	
	if(count==0){ 
		out.print( object.getClass().getMethod(method,null).invoke(object,null)    );
	} else {
		Object[] parameters = atts.values().toArray();
		
		Class[] paraTypes = new Class[parameters.length];
		for(int i=0;i<parameters.length;i++)
			paraTypes[i]=parameters[i].getClass();
		out.print(  object.getClass().getMethod(method,paraTypes).invoke(object,parameters) );
	}	
%>	

 